import request from '@/utils/request'

// 查询所有终审订单列表

export function listCollections(pageNum,pageSize) {
  return request({
    url: '/collect/listCollections?pageNum='+pageNum+'&pageSize='+pageSize,
    method: 'get'
  })
}

export function saveCollectRecord(data) {
  return request({
    url: '/collect/saveCollectRecord',
    method: 'post',
    data
  })
}

export function addCollectRecord(data) {
  return request({
    url: '/collect/addCollectRecord',
    method: 'post',
    data
  })
}

export function updateClientRemark(data) {
  return request({
    url: '/collect/updateClientRemark',
    method: 'post',
    data
  })
}

export function getOperatorInfo(name) {
  return request({
    url: '/collect/getOperatorInfo/'+name,
    method: 'get'
  })
}

export function getClientInfo(loanInfoId) {
  return request({
    url: '/collect/getClientInfo/'+loanInfoId,
    method: 'get'
  })
}

export function getBillDetail(billId) {
  return request({
    url: '/collect/getBillDetail/'+billId,
    method: 'get'
  })
}

export function getBillOrders(loanInfoId) {
  return request({
    url: '/collect/getBillOrders/'+loanInfoId,
    method: 'get'
  })
}

export function getBillListInfo(loanInfoId) {
  return request({
    url: '/collect/getBillListInfo/'+loanInfoId,
    method: 'get'
  })
}

export function getDictKeyInfo(name) {
  return request({
    url: '/collect/getDictKeyInfo/'+name,
    method: 'get'
  })
}

export function getProductionInfo(loanInfoId) {
  return request({
    url: '/collect/getProductionInfo/'+loanInfoId,
    method: 'get'
  })
}

export function searchCollectList(data) {
  return request({
    url: '/collect/searchCollectList',
    method: 'post',
    data
  })
}